package com.huike.clues.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReportDto {
    private Long id;
    private String owner;
    private Integer post;
    private Integer pageNum;
    private Integer pageSize;

    //时间格式用DateTimeFormat来接收
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate beginCreateTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endCreateTime;

}
